
#include <Square.h>

Square::Square(unsigned int length)
    : rect(length, length)
{
}

unsigned int Square::getArea() const
{
	return rect.getArea();
}

unsigned int Square::getPerimeter() const
{
	return rect.getPerimeter();
}

void Square::setSide(unsigned int side)
{
	rect.setLength(side);
	rect.setWidth(side);
}